package com.qfedu.aunt.commons.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qfedu.aunt.commons.pojo.Aunt;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qfedu.aunt.commons.vo.AuntVo;

import java.util.List;

/**
 * <p>
 * 阿姨表 服务类
 * </p>
 *
 * @author xiaobobo
 * @since 2022-10-26
 */
public interface AuntService extends IService<Aunt> {
    /**
     * 通过城市分页查询阿姨的信息
     * @param cityName
     * @param currentPage
     * @param pageSize
     * @return
     */
    IPage<Aunt> findAuntsByCityNames(String cityName, Integer currentPage, Integer pageSize) throws Exception;

    /**
     * 听过阿姨的id查询阿姨的详细信息
     * @param auntId
     * @return
     */
    AuntVo findAuntByAuntId(String auntId);
}
